home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / LGP250S1.ZIP / src / libgplus.5 / libgplus / test-ins / foo.h < prev    next >
C/C++ Source or Header  |  1991-12-07  |  399b  |  25 lines

  1. // Class Foo
  2.  
  3. #pragma interface
  4.  
  5. #define FOOLISH_NUMBER -4711
  6.  
  7. #ifndef FOO_MSG_LEN
  8. #define FOO_MSG_LEN 80
  9. #endif
  10.  
  11. class Foo {
  12.     static int foos;
  13.     int i;
  14.     const len = FOO_MSG_LEN;
  15.     char message[len];
  16. public: 
  17.     static void init_foo ();
  18.     static int nb_foos() { return foos; }
  19.     Foo();
  20.     Foo( char* message);
  21.     Foo(const Foo&);
  22.     Foo & operator= (const Foo&);
  23.     ~Foo ();
  24. }; 
  25.